<!DOCTYPE html>
<html>
<head>
<#include "/common/freemarker/include_css.ftl">
<title>标准增删改查</title>
</head>

 
<body style="padding:10px">
    <div class="panel panel-default">
        <div class="panel-heading"><strong>XX管理</strong></div>
        <div class="panel-body">
  				 <div class="row" >
	              		<form action="<@context/>ued/tpltb3/search.do" id="searchFromId" method="post" style="display:none" class="form-horizontal"> <#-- 该ID需当参数传入分页的宏    -->
			                
				                <input type="hidden" name="pageId" id="pageId">                         <#-- 这里必须加上，不然分页模块会不正常，且id和name不能修改为其他值 --> 
				                <input type="hidden" name="pageMaxSize" id="pageMaxSize">                   <#-- 这里必须加上，不然修改显示条数会不正常，且id和name不能修改为其他值   -->
				                
						        <div class="form-body query-form">	          
										<div class="col-xs-6 col-sm-4 query-item" >
									    <label class="control-label col-xs-5 col-sm-5">名称</label>
										<div  class="col-xs-7 col-sm-7 ">
											<input type="text"   class="input-sm form-control clean" name="_s_lk_title" placeholder="" value='${ param["_s_lk_title"]?if_exists}'  />														
										</div>
										</div>
										<div class="col-xs-6 col-sm-4 query-item" >
										<label class="control-label  col-xs-5 col-sm-5" >创建时间大于</label>
										<div class="col-xs-7 col-sm-7 ">
											<input type="text" class="input-sm form-control clean"  date-picker" name="_d_ge_createTime" placeholder="" data-date-format="yyyy-mm-dd"  value='${ param["_d_ge_createTime"]?if_exists}' onclick="javascript:WdatePicker({dateFmt:'yyyy-MM-dd'});"  />																									
										</div>
										</div>
										<div class="col-xs-6 col-sm-4 query-item" >
										<label class="control-label col-xs-5 col-sm-5">创建时间小于</label>
										<div class="col-xs-7 col-sm-7 ">
											 <input type="text"  class="input-sm form-control clean"  date-picker" name="_d_led_createTime" placeholder="" data-date-format="yyyy-mm-dd" value='${ param["_d_led_createTime"]?if_exists}' onclick="javascript:WdatePicker({dateFmt:'yyyy-MM-dd'});"  />																										
										</div>
										</div>
										
							  			<div class="col-xs-6 col-sm-4 query-item" >
										<label class="control-label col-xs-5 col-sm-5">创建人</label>
										<div class="col-xs-7 col-sm-7 ">
											<input type="text"   class="input-sm form-control clean" id="_l_eq_creator" name="_l_eq_creator" placeholder="" value='${ param["_l_eq_creator"]?if_exists}'>														
										</div>
										</div>
										<div class=" col-xs-12 col-sm-12">
											<div  >		
													<center>																
									  	                <input type="button" class="btn    btn-sm btn-primary" id="btnQuery"  value="确定"/>&nbsp;
									  	                <#--
									  	                <input type="button" class="btn  btn-default  btn-sm" id="btnReset" value="重 置"/> 
									  	                -->
									  	                <a class="btn btn-sm btn-default"    href="#" onclick="javascript:$('#searchFromId').toggle();">隐藏</a>&nbsp;	   
													</center>
											</div>	
										</div>
								</div>				                
			          </form>
		     </div>
		     
		     <div class="row">
			     <div class=" col-xs-12 col-sm-12 ">
		  			<div class="btn-group-search-panel">
	        			 <a class="btn btn-sm btn-default"    href="#" onclick="javascript:$('#searchFromId').toggle();"> <span class="fa fa-search">搜索</span> </a>&nbsp;	 
	         			 <a class="btn btn-sm btn-primary"  href="<@context/>ued/tpltb3/create.do"> <span class="fa fa-plus">添加</span> </a>
				      </div>   
		         </div>
	         </div>
			 <div id="listPageSpan">
	         </div>
 
		 </div>
	 </div>
	 
	<#include "/common/freemarker/include_js.ftl">
	<script>
	      var listPageAjaxUrl= "<@context/>ued/tpltb3/searchPageAjax.do";
	      
	      window.onload=function(){
	      	 listPageAjax();
	      }
	      function listPageAjax(){
	      	 	var data = $("#searchFromId").serialize();
				$.ajax({
					type: "post",
					url: listPageAjaxUrl,
					data: data,
					cache: false,
					success: function(html){
						$("#listPageSpan").html(html);
					}
				});
	      }
	      $("#btnReset").click(function() {
	    	  $(".clean").val("");
	      })
	      $("#btnQuery").click(function() {
	    	  listPageAjax();
	      })    
	</script>
</body>	 
</html>